package com.wanbangee.marksystem.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.wanbangee.marksystem.service.TestService;

@RestController
public class TestController {
	
	@Autowired
	private TestService testService;
	
	@GetMapping("hello")
	public String helloworld() {
		testService.testService();
		return "Hello World";
	}
	
	@GetMapping("hello2")
	public List helloworld2() {
		return testService.selectScoreByMarkerId(5, 2, 6, 1);
	}
}
